package community.hospital.entity.request;

import community.hospital.annotation.CheckState;
import community.hospital.common.Add;
import community.hospital.common.BaseIndex;
import community.hospital.common.Update;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * @author yindingjie
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class DepartmentRequest extends BaseIndex implements Serializable {
    private static final long serialVersionUID = 3929874249061085795L;
    @NotNull(groups = {Add.class, Update.class},message = "pid不能为空")
    private Long pid;
    @NotBlank(groups = {Add.class, Update.class},message = "科室名不能为空")
    private String deptName;
    @NotNull(groups = {Add.class, Update.class},message = "医院id不能为空")
    private Long hospitalId;


}
